#include "../begonia.h"
#include "boss_1_3.h"
#include "../base/scene.h"

boss_1_3::boss_1_3():boss(192.0,250.0,20.0,0.0,0.0,&f.head)
    {
        aimy=f.py;
    }
boss_1_3::boss_1_3(double tx,double ty,double tr,double tvx,double tvy,bullet *h):boss(tx,ty,tr,tvx,tvy,h)
    {
    }
void boss_1_3::clone(bullet *h)
    {
        new boss_1_3(x,y,r,vx,vy,h);
    }
bool boss_1_3::move()
    {
        if((int)t/60>(int)tlast/60) aimy=f.py;
        if((int)t/5>(int)tlast/5)
        {
            if((int)t/60%2)
            {
                new bullet(scw,aimy+100.0,7.0,-2.0,0.0,&f.head);
                new bullet(scw,aimy+50.0,7.0,-2.0,0.0,&f.head);
                new bullet(scw,aimy,7.0,-2.0,0.0,&f.head);
                new bullet(scw,aimy-50.0,7.0,-2.0,0.0,&f.head);
                new bullet(scw,aimy-100.0,7.0,-2.0,0.0,&f.head);
            }
            else
            {
                new bullet(0.0,aimy+100.0,7.0,2.0,0.0,&f.head);
                new bullet(0.0,aimy+50.0,7.0,2.0,0.0,&f.head);
                new bullet(0.0,aimy,7.0,2.0,0.0,&f.head);
                new bullet(0.0,aimy-50.0,7.0,2.0,0.0,&f.head);
                new bullet(0.0,aimy-100.0,7.0,2.0,0.0,&f.head);
            }

            new bullet(42.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(92.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(142.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(192.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(242.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(292.0,sch,7.0,0.0,-2.0,&f.head);
            new bullet(342.0,sch,7.0,0.0,-2.0,&f.head);
        }
        return true;
    }
